﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Editor.aspx.cs" Inherits="admin_bat_dong_san_Editor" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="/images/upload.css" rel="stylesheet" type="text/css" />
    <script src="/swfupload/swfupload.js" type="text/javascript"></script>
    <script src="/Scripts/handlers.js" type="text/javascript"></script>
    <script src="/Scripts/admin.js" type="text/javascript"></script>
    <script src="/admin/js/batdongsan_editor.js" type="text/javascript"></script>
    <title>kimland.vn - bất động sản</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="bodyR1">
    <div class="topCat" style="margin-top:10px;">
        <p class="l"></p>
        <div class="m">
            <p class="pos">
                <a href="#">Bất động sản</a> >> <asp:Label ID="lblAction" runat="server" Text=""></asp:Label>
            </p>
        </div>
        <p class="r"></p>
    </div>
    <div class="boxBorder2">
        <div class="info_div" id="fail" runat="server" visible="false"><span class="ico_cancel">Có lỗi xảy ra!</span></div>
   
        <div><h2><img src="/images/bul1.png" /> Các thông tin chi tiết về bất động sản </h2></div>
        <p class="hrDotted"></p>
        <div class="clear" style="overflow:hidden">
            <p class="reds">1. Thông tin chung</p>
            <div class="boundCol">
                <div style="width:500px;float:left">
                <p class="colLeft2">Tên</p><p class="colRight2"><asp:TextBox ID="txtTen" runat="server" CssClass="textbox"></asp:TextBox></p>
                <p class="colLeft2">Avatar</p><p class="colRight2" style="width:265px;"><asp:FileUpload ID="fileUploadAvatar" runat="server" /></p>            
                </div>
                <p class="colLeft2" style="width:65px;">
                    <asp:Image ID="imgAvatar" runat="server" ImageUrl="/images/no_image.jpg" Width="58px" Height="58px" style="padding:1px;border:1px solid #ddd"/>
                </p>
            </div>
           
            <div class="boundCol">
                <p class="colLeft2">Giá (đv 1000 VNĐ)</p><p class="colRight2"><asp:TextBox ID="txtGia" runat="server" CssClass="textbox"></asp:TextBox></p>
                 <p class="colLeft2">Diện tích</p><p class="colRight2"><asp:TextBox ID="txtDienTich" runat="server" CssClass="textbox"></asp:TextBox></p>
           
             </div>
              <div class="boundCol">
                <p class="colLeft2">Giới thiệu ngắn (Hiển thị trên trang danh mục)</p>
                <div class="colRight2" style="width:720px;">
                    <FCKeditorV2:FCKeditor ID="fckIntro" runat="server" Width="710px" Height="200px">
                    </FCKeditorV2:FCKeditor>
                </div>
            </div>
             <div class="boundCol">
                <p class="colLeft2">Thông tin chung</p>
                <div class="colRight2" style="width:720px;">
                    <FCKeditorV2:FCKeditor ID="radCommonInfo" runat="server" Width="710px" Height="250px">
                    </FCKeditorV2:FCKeditor>
                </div>
            </div>
             <div class="boundCol">
                <p class="colLeft2">Demo Ảnh</p>
                <div id="swfu_container" style="margin: 0px 10px;">
		            <div>
				        <span id="spanButtonPlaceholder"></span>
		            </div>
		            <div id="divFileProgressContainer"></div>
		            <div id="thumbnails"></div>
	            </div>
	            <asp:HiddenField ID="hidImgContent" runat="server" />
	            <asp:HiddenField ID="hidImgDes" runat="server" />
            </div>
            <div class="boundCol">
                <p class="colLeft2">Demo Video</p>
                <p class="colRight2" style="width:720px">
                    <asp:TextBox ID="txtDemoVideo" runat="server" TextMode="MultiLine" Height="80px" Width="700px" CssClass="textbox"></asp:TextBox>
                    <asp:Literal ID="litDemoVideo" runat="server"></asp:Literal>
                </p>
            </div>
            <div class="boundCol">
                <p class="colLeft2">Demo Bản đồ</p>
                <div class="colRight2" style="width:600px">
                    <asp:FileUpload ID="fileUploadMap" runat="server" />            
                    <p class="clear"><asp:Image ID="imgMap" runat="server" /></p>
                </div>
            </div>            
             
        </div>
        <p class="hrDotted"></p>
        <div class="clear" >
            <p class="reds">2. Thông tin private</p>
            <div class="boundCol">
                <p class="colLeft2">Nội dung</p>
                <div class="colRight2" style="width:720px;">
                    <FCKeditorV2:FCKeditor ID="fckPrivateInfo" runat="server" Width="710px" Height="250px">
                    </FCKeditorV2:FCKeditor>
                </div>
            </div>      
             <div class="boundCol">
                <p class="colLeft2"></p>
                <div class="colRight2">
                    Hiển thị thông tin private <asp:CheckBox ID="chkIsPrivate" runat="server" />
                </div>
            </div>  
        </div>

        <div style="margin-top:20px"><h2><img src="/images/bul1.png" /> Các thông tin phân loại </h2></div>
        <p class="hrDotted"></p>  
              
        <div class="boundColA">
            <p class="colLeft2">1. Quận huyện</p>
            <div class="lstChk">
                <asp:Repeater ID="repQuanHuyen" runat="server">
                <ItemTemplate>
                    <p><input id='<%# Eval("id") %>' type="radio" name="radQuanHuyen"/><%# Eval("catName") %></p>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
         <div class="boundColA">
            <p class="colLeft2" style="width:200px">2. Loại dự án, khu đô thị</p>
            <div class="lstChk">
                <asp:Repeater ID="radDuAn" runat="server">
                <ItemTemplate>
                    <p><input id='<%# Eval("id") %>' type="radio" name="radLoaiDuAn"/><%# Eval("catName") %></p>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
         <div class="boundColA">
            <p class="colLeft2">3. Mức giá</p>
            <div class="lstChk">
                <asp:Repeater ID="radMucGia" runat="server">
                <ItemTemplate>
                    <p><input id='<%# Eval("id") %>' type="radio" name="radMucGia"/><%# Eval("catName") %></p>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
       
         <div class="boundColA">
            <p class="colLeft2" style="width:200px">4. Loại bất động sản</p>
            <div class="lstChk">
                <asp:Repeater ID="radLoaiBDS" runat="server">
                <ItemTemplate>
                    <p><input id='<%# Eval("id") %>' type="radio" name="radLoaiBDS"/><%# Eval("catName") %></p>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <div class="boundColA">
            <p class="colLeft2">5. Hướng</p>
            <div class="lstChk">
                <asp:Repeater ID="chkHuong" runat="server">
                <ItemTemplate>
                    <p><input id='<%# Eval("id") %>' type="radio" name="radHuong"/><%# Eval("catName") %></p>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <div class="boundColA">
            <p class="colLeft2" style="width:200px">6. Đặc điểm đường</p>
            <div class="lstChk">            
                <asp:Repeater ID="chkDacDiemDuong" runat="server">
                <ItemTemplate>
                    <p><input id='<%# Eval("id") %>' type="radio" name="radDDDuong"/><%# Eval("catName") %></p>
                </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
       
         <div class="boundColA">
            <p class="hrDotted"></p>        
            <p style="margin-left:100px">
                <asp:Button ID="btnEdit" runat="server" Text="Sửa" CssClass="buttonA" onclick="btnEdit_Click" OnClientClick="getImgContent();return doSelectCat();"/>
                <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" CssClass="buttonA" onclick="btnAdd_Click" OnClientClick="getImgContent();return doSelectCat();"/>
                <asp:Button ID="btnCancel" runat="server" Text="Hủy" CssClass="buttonA" onclick="btnCancel_Click"/>	
                <asp:HiddenField ID="hidID" runat="server" />
                <asp:HiddenField ID="hidAvatar" runat="server" Value="/images/no_image.jpg"/>  
                <asp:HiddenField ID="hidDemoMap" runat="server" Value="/images/no_image.jpg"/>  
                <asp:HiddenField ID="hidCatID" runat="server" Value=""/>
            </p>
        </div>
    </div>
</div>
</asp:Content>

